package com.inlycat.mapper;

import com.inlycat.entity.Tramp;

/**
 * @author jarvan4dev@163.com
 * @since 2015年8月13日下午12:41:38
 * @category 踩mapper接口
 **/
public interface TrampMapper {

	/**
	 * 新增踩
	 * @param tramp
	 * @return
	 */
	boolean insert(Tramp tramp) throws RuntimeException;
	
	/**
	 * 取消踩
	 * @param tramp
	 * @return
	 */
	boolean delete(Tramp tramp) throws RuntimeException;
	
	/**
	 * 是否已踩
	 * @param tramp
	 * @return
	 */
	int hasTramp(Tramp tramp) throws RuntimeException;
}
